package com.csit.service;

import java.util.Date;
import java.util.Map;

import com.csit.entity.Buy;
import com.csit.entity.BuyDetail;

public interface BuyDetailService extends BaseService<BuyDetail, Integer> {
	
	/**
	 * 
	 * @Description: 查询采购单
	 * @param
	 * @Create: 2012-10-31 下午09:59:57
	 * @author longweier
	 * @update logs
	 * @param pageNumber
	 * @param pageSize
	 * @param buyDetail
	 * @param beginDate
	 * @param endDate
	 * @return
	 * @return
	 * @throws Exception
	 */
	public String queryBuyDetail(Integer pageNumber,Integer pageSize,Buy buy,Date beginDate,Date endDate);
	
	/**
	 * 
	 * @Description: 查询汇总
	 * @param
	 * @Create: 2012-11-1 下午08:38:46
	 * @author longweier
	 * @update logs
	 * @param pageNumber
	 * @param pageSize
	 * @param buy
	 * @param productids
	 * @param beginDate
	 * @param endDate
	 * @return
	 * @return
	 * @throws Exception
	 */
	public String queryBuyDetail(Integer pageNumber,Integer pageSize,Buy buy,String productids, Date beginDate,Date endDate);
	
	/**
	 * 
	 * @Description: 统计
	 * @param
	 * @Create: 2012-12-8 下午09:45:17
	 * @author longweier
	 * @update logs
	 * @param buy
	 * @param beginDate
	 * @param endDate
	 * @return
	 * @return
	 * @throws Exception
	 */
	public Map<String, Double> countBuyDetail(Buy buy,Date beginDate,Date endDate);
}
